package com.woniu.api;

import com.woniu.dto.QueryImageDto;
import com.woniu.param.CreateImageParam;
import com.woniu.param.QueryImageParam;
import com.woniu.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "check", contextId = "image", path = "image")
@Api(tags = "影像检查")
public interface HisImageAPI {

    //查询影像结果
    @ApiOperation("查询影像结果")
    @GetMapping("/queryImage")
    Result<QueryImageDto> queryImage(@RequestBody QueryImageParam queryImageParam);

    //添加影像
    @ApiOperation("添加影像")
    @PostMapping("/createImage")
    Result<QueryImageDto> createImage(@RequestBody CreateImageParam createImageParam);
}
